package com.ruoyi.publish.mapper;

import java.util.List;

import com.ruoyi.publish.domain.IdAcceptRegister;
import com.ruoyi.publish.domain.IdReport;
import com.ruoyi.publish.domain.SelfIncreasing;
import com.ruoyi.publish.domain.SelfIncreasingReport;
import org.apache.ibatis.annotations.Param;

/**
 * 鉴定报告Mapper接口
 * 
 * @author confusefox
 * @date 2020-11-17
 */
public interface IdReportMapper 
{
    /**
     * 查询鉴定报告
     * 
     * @param id 鉴定报告ID
     * @return 鉴定报告
     */
    public IdReport selectIdReportById(Long id);

    /**
     * 查询鉴定报告列表
     * 
     * @param idReport 鉴定报告
     * @return 鉴定报告集合
     */
    public List<IdReport> selectIdReportList(IdReport idReport);

    /**
     * 新增鉴定报告
     * 
     * @param idReport 鉴定报告
     * @return 结果
     */
    public int insertIdReport(IdReport idReport);

    /**
     * 修改鉴定报告
     * 
     * @param idReport 鉴定报告
     * @return 结果
     */
    public int updateIdReport(IdReport idReport);

    /**
     * 删除鉴定报告
     * 
     * @param id 鉴定报告ID
     * @return 结果
     */
    public int deleteIdReportById(Long id);

    /**
     * 批量删除鉴定报告
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteIdReportByIds(String[] ids);


    /**
     * @Description: 获得相应的报表编码
     *
     */
    public String getReportCode( );

    /**
     * 受理登记 word一键更新
     *
     * @param id 鉴定受理登记
     * @return 结果
     */
    public int IdReportRefreshByRecordId(Long id);

    /**
     * 根据Id获取数据
     *
     * @param ids
     * @return
     */
    public List<IdReport> selectRecordByIds(String[] ids);

    /**
     * 根据案件ID获取相关的鉴定结论
     * @param id
     * @return
     */
    public List<IdReport> selectRecordByRegisterId(Long id);

//-------------------------------------

    /**
     * 根据年限查询自增值
     *
     * @param year
     * @return
     */
    public SelfIncreasingReport findByYear(@Param("year")int year);

    /**
     * 修改自增内容
     *
     * @param selfIncreasingReport
     * @return
     */
    public int updateSelfIncreasingReport(SelfIncreasingReport selfIncreasingReport);

    /**
     * 新增自增内容
     *
     * @param selfIncreasingReport
     * @return
     */
    public int insertSelfIncreasingReport(SelfIncreasingReport selfIncreasingReport);


}
